using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
using DevExpress.Persistent.Validation;
namespace Ascent.QiPei.Module.BusinessObjects.Finance
{
  [DefaultClassOptions]
  [DevExpress.Persistent.Base.NavigationItemAttribute("财务管理")]
  [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("现金帐")]
  public partial class CashAccount : DevExpress.Persistent.BaseImpl.BaseObject
  {
    private System.String _associationNubmers;
    private System.Single _payAmount;
    private System.String _remark;
    private System.String _summary;
    private System.Single _incomeAmount;
    private System.DateTime _date;
    private System.String _customOrSupplier;
    private System.String _cATCode;
    public CashAccount(DevExpress.Xpo.Session session)
      : base(session)
    {
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("单号")]
    [RuleRequiredField(DefaultContexts.Save)]
    public System.String CATCode
    {
      get
      {
        return _cATCode;
      }
      set
      {
        SetPropertyValue("CATCode", ref _cATCode, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("日期")]
    [RuleRequiredField(DefaultContexts.Save)]
    public System.DateTime Date
    {
      get
      {
        return _date;
      }
      set
      {
        SetPropertyValue("Date", ref _date, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("客户/供应商")]
    [RuleRequiredField(DefaultContexts.Save)]
    public System.String CustomOrSupplier
    {
      get
      {
        return _customOrSupplier;
      }
      set
      {
        SetPropertyValue("CustomOrSupplier", ref _customOrSupplier, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("摘要")]
    public System.String Summary
    {
      get
      {
        return _summary;
      }
      set
      {
        SetPropertyValue("Summary", ref _summary, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("收款金额")]
    public System.Single IncomeAmount
    {
      get
      {
        return _incomeAmount;
      }
      set
      {
        SetPropertyValue("IncomeAmount", ref _incomeAmount, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("支出金额")]
    public System.Single PayAmount
    {
      get
      {
        return _payAmount;
      }
      set
      {
        SetPropertyValue("PayAmount", ref _payAmount, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("关联单号")]
    public System.String AssociationNubmers
    {
      get
      {
        return _associationNubmers;
      }
      set
      {
        SetPropertyValue("AssociationNubmers", ref _associationNubmers, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("备注")]
    public System.String Remark
    {
      get
      {
        return _remark;
      }
      set
      {
        SetPropertyValue("Remark", ref _remark, value);
      }
    }
  }
}
